using System.Collections.Generic;

namespace Jinjia.Approve.Model.Const
{
    /// <summary>
    /// 审批流实例状态常量
    /// </summary>
    public static class JJFlowInstanceStatusConst
    {
        /// <summary>
        /// 审核中
        /// </summary>
        public const string Pending = "0";

        /// <summary>
        /// 拒绝
        /// </summary>
        public const string Reject = "10";

        /// <summary>
        /// 通过
        /// </summary>
        public const string Approved = "20";

        /// <summary>
        /// 撤回
        /// </summary>
        public const string Recall = "30";

        /// <summary>
        /// 集合
        /// </summary>
        public static readonly string[] List = { Pending, Reject, Approved, Recall };

        /// <summary>
        /// 完结态集合
        /// </summary>
        public static readonly string[] EndList = { Reject, Approved, Recall };

        /// <summary>
        /// 对应飞书实例状态映射
        /// </summary>
        public static readonly Dictionary<string, string> FeiShuInstanceStatusMapping = new Dictionary<string, string>
        {
            { Pending, FeiShuFlowInstanceStatusConst.Pending },
            { Reject, FeiShuFlowInstanceStatusConst.Rejected },
            { Approved, FeiShuFlowInstanceStatusConst.Approved },
            { Recall, FeiShuFlowInstanceStatusConst.Canceled },
        };
    }
}